Clear Collection
The "Clear Collection" activity in AutomatR is designed to remove all elements from a collection, effectively resetting it to an empty state. This is useful when you need to clear the contents of a list, array, or other collection types during the course of your automation workflow.
| Name | Description |
|---|---|
| Misc | |
| Collection | Specifies the target collection that you want to clear. Supports a variable of type List, Array, or other collection types. |
| Display Name | This property allows you to customize the display name of the activity within the workflow. |
| Type Argument | Defines the data type of the elements in the collection. Options include Boolean, Int32, String, Object, Array of Types, and Browse for Types (allowing the user to select a .NET Type from the browse list). |
Effectively configuring these properties enables you to clear the contents of a collection, making it empty and ready for new data. This activity is particularly useful when you need to reset or prepare a collection for a fresh set of elements within your AutomatR workflow.